cargo-install: prefer building artifacts in the system temporary directory
authorJorge Aparicio <japaricious@gmail.com>
Fri, 22 Apr 2016 22:49:12 +0000 (17:49 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Fri, 22 Apr 2016 22:49:12 +0000 (17:49 -0500)
commit1a6bad8e5bc822ce345903ab03b196694bad6c54
tree4ba97152bd746666902d512497a83798d02e0562
parent867627c2752f9a3b6908805772b83b3824643aac
cargo-install: prefer building artifacts in the system temporary directory

and each cargo-install instance creates and uses its own build directory. This
allows running several cargo-install instances in parallel.

If we fail to create a temporary directory for whatever reason fallback to
creating and using a target-install directory in the current directory.

closes #2606
Cargo.toml
src/cargo/lib.rs
src/cargo/ops/cargo_install.rs